package com.neuedu.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 项目：      spring-framework
 * 类名:       DeptController
 * 创建时间：  2024/3/21 13：52
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
@Controller

public class DeptController {



    public List list(){
        return null;
    }


    /**
     * /dept/1
     * @param id
     * @return
     */
    @GetMapping("/user/{id}")
    public Object getOne(@PathVariable  String id){
        return null;
    }

    /**
     * http://127.0.0.1:8080/json/dept/2
     * @param id
     */
    @DeleteMapping({"/user/{id}"})
    public void removeById(@PathVariable String id){

    }

    /**
     * http://127.0.0.1:8080/json/dept/2/asbdbssa
     * @param id
     * @param name
     */
    @DeleteMapping({"/user/{name}}/{id"})
    public void insert( @PathVariable  String name ,String id ){

    }

    public void udpate(){

    }


}
